package com.jk.smartelderlycare.interfaces;

import com.jk.smartelderlycare.dto.SysHomestay;
import com.jk.smartelderlycare.pojo.PagedResponse;

import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Description 添加描述
 * @Author hhk
 * @LastChangeDate 2024/11/25 16:35
 * @Version v1.0
 */
public interface SysHomestayServiceApi {
    /** 
     * @description: 民宿后端分页查询
     * @param: [sysHomestay, pageNum, pageSize]
     * @return: com.jk.smartelderlycare.pojo.PagedResponse<com.jk.smartelderlycare.dto.SysHomestay>
     * @author hhk
     * @date: 2024/11/25 16:41
     */ 
    @PostMapping(value = "/sysHomestay/findSysHomestayPaginationList")
    public PagedResponse<SysHomestay> findSysHomestayPaginationList(@RequestBody SysHomestay sysHomestay, @RequestParam(value = "pageNum") Integer pageNum,@RequestParam(value = "pageSize") Integer pageSize);
    /**
     * @description: 新增民宿
     * @param: [sysHomestay]
     * @return: void
     * @author hhk
     * @date: 2024/11/25 16:42
     */
    @PostMapping(value = "/sysHomestay/addSysHomestay")
    public void addSysHomestay(@RequestBody SysHomestay sysHomestay);
    /**
     * @description: 根据id删除一条数据
     * @param: [homestayId]
     * @return: void
     * @author hhk
     * @date: 2024/11/25 16:42
     */
    @DeleteMapping(value = "/sysHomestay/deleteSysHomestayById")
    public void deleteSysHomestayById(@RequestParam Long homestayId);
    /**
     * @description: 根据id删除一条数据
     * @param: [homestayId]
     * @return: com.jk.smartelderlycare.dto.SysHomestay
     * @author hhk
     * @date: 2024/11/25 16:43
     */
    @GetMapping(value = "/sysHomestay/findSysHomestayById")
    public SysHomestay findSysHomestayById(@RequestParam Long homestayId);

    /**
     * @description: 修改民宿
     * @param: [sysHomestay]
     * @return: void
     * @author hhk
     * @date: 2024/11/25 16:44
     */
    @PutMapping(value = "/sysHomestay/updateSysHomestay")
    public void updateSysHomestay(@RequestBody SysHomestay sysHomestay);

    /**
     * @description: 状态通过
     * @param: [sysHomestay]
     * @return: void
     * @author hhk
     * @date: 2024/11/25 16:44
     */
    @PutMapping(value = "/sysHomestay/upPassStatusById")
    public void upPassStatusById(@RequestBody SysHomestay sysHomestay);
    /**
     * @description: 状态未通过
     * @param: [homestayName]
     * @return: void
     * @author hhk
     * @date: 2024/11/25 16:47
     */
    @PostMapping(value = "/sysHomestay/FailedStatusById")
    public void FailedStatusById(@RequestBody SysHomestay sysHomestay);
    /**
     * @description: 发布房屋列表查询
     * @param: [sysHomestay]
     * @return: java.util.List<com.jk.smartelderlycare.dto.SysHomestay>
     * @author hhk
     * @date: 2024/11/27 15:05
     */
    @PostMapping(value = "/sysHomestay/findSysHomestayList")
    public List<SysHomestay> findSysHomestayList(@RequestBody SysHomestay sysHomestay);
    /**
     * @description: 全部租房列表查询
     * @param: []
     * @return: java.util.List<com.jk.smartelderlycare.dto.SysHomestay>
     * @author hhk
     * @date: 2024/11/28 16:07
     */
    @GetMapping(value = "/sysHomestay/fimdSysHomestayList")
    public List<SysHomestay>fimdSysHomestayList();

    /**
     * @description: 导入
     * @param: [sysHomestay]
     * @return: void
     * @author hhk
     * @date: 2024/11/25 16:42
     */
    @PostMapping(value = "/sysHomestay/addHomestay")
    public void addHomestay(@RequestBody SysHomestay sysHomestay);

}


